package com.guojian.common.regex;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {

	public static Pattern pattern_dkh = Pattern.compile("\\{\\}");

	public static void main(String[] args) {
		/*String abc = RegExUtils.replaceFirst("this is a {}, and i am very {} it", "\\{\\}", "apple");
		System.out.println(abc);*/

		
		Matcher match = pattern_dkh.matcher(" this is a {}, and i am very {} it ");

		System.out.println(match.replaceFirst("ppppp"));

		Matcher match1 = pattern_dkh.matcher(" this is a {}, and i am very {} it ");

		System.out.println(match1.replaceFirst("aaaaa"));

	}

}
